<template>
  <div>
    <div>
      <h4>居住环境</h4>
      <el-row type="flex" justify="space-between">
        <el-col :span="6">
          <div>
            <span>居住状况 </span>
            <el-select
              v-model="pgForm.living_environment_value1"
              placeholder="请选择"
              style="width: 50%;">
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>楼层电梯 </span>
            <el-select v-model="pgForm.living_environment_value2" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options2"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>无障碍设施 </span>
            <el-select v-model="pgForm.living_environment_value3" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options2"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>洗澡 </span>
            <el-select v-model="pgForm.living_environment_value4" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options3"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>便式 </span>
            <el-select v-model="pgForm.living_environment_value5" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options4"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="18">
          <div>
            <span>备注 </span>
            <el-input v-model="pgForm.living_environment_input" placeholder="" style="width: 83%;"></el-input>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "living_environment",
  title: "居住环境",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      options1: [{
        value: '独居',
        label: '独居'
      }, {
        value: '同住',
        label: '同住'
      }],
      options2: [{
        value: '有',
        label: '有'
      }, {
        value: '无',
        label: '无'
      }],
      options3: [{
        value: '淋浴',
        label: '淋浴'
      }, {
        value: '浴缸',
        label: '浴缸'
      }, {
        value: '其他',
        label: '其他'
      }],
      options4: [{
        value: '蹲式',
        label: '蹲式'
      }, {
        value: '坐式',
        label: '坐式'
      }, {
        value: '其他',
        label: '其他'
      }],
      pgForm: {
        living_environment_value1: '',
        living_environment_value2: '',
        living_environment_value3: '',
        living_environment_value4: '',
        living_environment_value5: '',
        living_environment_input: ''
      }
    }
  }
}
</script>

<style scoped>

.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin: 10px 0;
}
</style>
